package com.example.permissionservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.permissionservice.entity.Role;
import org.apache.ibatis.annotations.Select;

public interface RoleMapper extends BaseMapper<Role> {

    @Select("SELECT * FROM roles WHERE role_code = #{roleCode}")
    Role findByCode(String roleCode);

}